namespace RuoVea.CodeGen.Server.Models;

using SqlSugar;

/// <summary>
/// 表列信息
/// </summary>
[SugarTable(nameof(Sys_TableColumn), "表列信息")]
public class Sys_TableColumn
{
    /// <summary>
    /// 表ID
    /// </summary>
    [SugarColumn(IsNullable = false)]
    public int Table_Id { get; set; }

    /// <summary>
    /// 主键
    /// </summary>
    [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
    public int ColumnId { get; set; }

    /// <summary>
    /// 列名
    /// </summary>
    [SugarColumn(IsNullable = false)]
    public string? ColumnName { get; set; }

    /// <summary>
    /// 列中文名称
    /// </summary>
    [SugarColumn(IsNullable = false, ColumnName = "ColumnCNName")]
    public string? ColumnCnName { get; set; }

    /// <summary>
    /// 列类型
    /// </summary>
    [SugarColumn(IsNullable = false)]
    public string? ColumnType { get; set; }

    /// <summary>
    /// 表名
    /// </summary>
    [SugarColumn(IsNullable = false)]
    public string? TableName { get; set; }

    /// <summary>
    /// 最大长度
    /// </summary>
    [SugarColumn(IsNullable = true)]
    public int? Maxlength { get; set; }

    /// <summary>
    /// 是否可为空
    /// </summary>
    [SugarColumn(IsNullable = true)]
    public int? IsNull { get; set; }

    /// <summary>
    /// 是否显示
    /// </summary>
    [SugarColumn(IsNullable = true)]
    public int? IsDisplay { get; set; }

    /// <summary>
    /// 是否为主键
    /// </summary>
    [SugarColumn(IsNullable = true)]
    public int? IsKey { get; set; }

    /// <summary>
    /// 列格式
    /// </summary>
    [SugarColumn(IsNullable = false)]
    public string? Columnformat { get; set; }

    /// <summary>
    /// 脚本
    /// </summary>
    [SugarColumn(IsNullable = false)]
    public string? Script { get; set; }

    /// <summary>
    /// 下拉编号
    /// </summary>
    [SugarColumn(IsNullable = false)]
    public string? DropNo { get; set; }

    /// <summary>
    /// 是否为图片
    /// </summary>
    [SugarColumn(IsNullable = true)]
    public int? IsImage { get; set; }

    /// <summary>
    /// 是否可排序
    /// </summary>
    [SugarColumn(IsNullable = true)]
    public int? Sortable { get; set; }

    /// <summary>
    /// 列宽度
    /// </summary>
    [SugarColumn(IsNullable = true)]
    public int? ColumnWidth { get; set; }

    /// <summary>
    /// 搜索行号
    /// </summary>
    [SugarColumn(IsNullable = true)]
    public int? SearchRowNo { get; set; }

    /// <summary>
    /// 搜索列号
    /// </summary>
    [SugarColumn(IsNullable = true)]
    public int? SearchColNo { get; set; }

    /// <summary>
    /// 搜索类型
    /// </summary>
    [SugarColumn(IsNullable = false)]
    public string? SearchType { get; set; }

    /// <summary>
    /// 编辑行号
    /// </summary>
    [SugarColumn(IsNullable = true)]
    public int? EditRowNo { get; set; }

    /// <summary>
    /// 编辑列号
    /// </summary>
    [SugarColumn(IsNullable = true)]
    public int? EditColNo { get; set; }

    /// <summary>
    /// 编辑类型
    /// </summary>
    [SugarColumn(IsNullable = false)]
    public string? EditType { get; set; }

    /// <summary>
    /// 列大小
    /// </summary>
    [SugarColumn(IsNullable = true)]
    public int? ColSize { get; set; }

    /// <summary>
    /// 是否读取数据集
    /// </summary>
    [SugarColumn(IsNullable = true)]
    public int? IsReadDataset { get; set; }

    /// <summary>
    /// 是否启用
    /// </summary>
    [SugarColumn(IsNullable = true)]
    public int? Enable { get; set; }

    /// <summary>
    /// API输入
    /// </summary>
    [SugarColumn(IsNullable = true)]
    public int? ApiInPut { get; set; }

    /// <summary>
    /// API是否可为空
    /// </summary>
    [SugarColumn(IsNullable = true)]
    public int? ApiIsNull { get; set; }

    /// <summary>
    /// API输出
    /// </summary>
    [SugarColumn(IsNullable = true)]
    public int? ApiOutPut { get; set; }

    /// <summary>
    /// 创建ID
    /// </summary>
    [SugarColumn(IsNullable = true)]
    public int? CreateID { get; set; }

    /// <summary>
    /// 创建者
    /// </summary>
    [SugarColumn(IsNullable = false)]
    public string? Creator { get; set; }

    /// <summary>
    /// 创建日期
    /// </summary>
    [SugarColumn(IsNullable = true)]
    public DateTime? CreateDate { get; set; }

    /// <summary>
    /// 修改ID
    /// </summary>
    [SugarColumn(IsNullable = true)]
    public int? ModifyID { get; set; }

    /// <summary>
    /// 修改者
    /// </summary>
    [SugarColumn(IsNullable = false)]
    public string? Modifier { get; set; }

    /// <summary>
    /// 修改日期
    /// </summary>
    [SugarColumn(IsNullable = true)]
    public DateTime? ModifyDate { get; set; }

    /// <summary>
    /// 排序号
    /// </summary>
    [SugarColumn(IsNullable = true)]
    public int? OrderNo { get; set; }

    /// <summary>
    /// 是否为列数据
    /// </summary>
    [SugarColumn(IsNullable = true)]
    public int? IsColumnData { get; set; }
}